merged the image and rectangle renderers