Resize and compress uploaded images
Fix vulnerability