preserves image scale when resizing