Create photo model and controller