updating drawing of images.