FB-14497: Added ability to set custom title for gallery images.