modified deflate_object method to not need xobject key during POST