also check that image sizes do not exceed 4096