added optional support of the imageproxy