ceil image sizes
Fix bug range bytes=0-