fixed flag photo bug
fixed photos available when not supposed to
new model for photos