Compress images
Fix 500 error