image sizes refactor