Added option to compress images generated by the Image class