update images in template