normalize image sizes