Implemented photo management

@otten @jfangmann have a look