First iteration of rendering gallery functionality.