added deflate_xobject functionality