Updating image in template