Securing db queries and created an ImageGallery class.