Kinda got photo working-ish

Opens gallery, but crashes once you select an image; working on
cleaning up the code a bit now before proceeding