updates image sizes