fix bug where retina image generation did not check cache first