fixes bad image ratio