Commenting, proper errors and general improvements
Compress original image