swap image sizes