rescales images while maintaining hue