Refactor the getting of gallery and installed themes.
Display only the installed themes, because it's a bad idea to install themes from the front end.