Revamp removeImage() signature
Change the signature to take a QCImage instead of an int imageId.
For now, the implementation just uses image.id(), so nothing changes
apart from a more future proof API.
The behavior is incorrect, because if the QCImage comes from an
addImage() overload that does not take a QImage, then that QCImage
was never registered with m_dataCache.
That problem is solved in future patches. This one here just corrects
the API.
Task-number: QTBUG-143843
Pick-to: 6.11
Change-Id: I170a29956f7470da4171751e7f652461b36018b2
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>