clean up the photo storage backend, revamp mod/wall_upload