updating rendering of image