Added config option graphImageType to set image output type