Paraneue gallery theme functions

@aaronschachter I did `git rebase -i` and created a new branch and PR. Does it look better?
This should cover all of the comments from the previous PR. 
Don't need this anymore, right?