CYB-347 Select image fields for Gallery API

https://jira.ets.berkeley.edu/jira/browse/CYB-347
Merge pull request #208 from coyote/sql_get_gallery_data

CYB-347 Select image fields for Gallery API