Fixed a bug with image renderer