Creates photo model and controller