as.integer around image sizes