Fixed issue with downsampled image