support for image output options like quality

ping @gatisl