fix images in template