changed the type of file for photos so they can be stored as Json strings and then reconverted to bitmaps