Some approximation of error handling
remove logging output
Always set maximum compression for PNG resizing