protect against empty image sizes
more protections on the image resizer. switch to blob instead of tempfile