fix aspect ratio of saved image