Photo gallery works again!

Changed order of imports and some other things that may or may have not
been affecting the issue. Commented out the last bit of the
imports…need to verify that its actually doing something? Browser
detect is also commented out for now