template update for images with multiple frames