fix aspect ratio for large images