add support for image output