changes to image cache (createCompatibleImage)