retain image scale property after resizing