correctly cache downsampled image