correct aspect ratio and image sizes