Fix problem with keep-aspect ratio