added code for image in renderer