app resizes the image