update queries, solr config for controlling visibility
refactor visibility values to remove them as hardcoded integers in the code; allow the user to selectively show and hide images
store visibility values in the database