notes on scaling image sizes