save image, proper scaling