BZ-8811: Added the gallery functionality, with videos too.