Added image.format getter and setter.
Added quality attribute to image object.