update image template and styles