Added url method to Photo model
Added in_base method to Photo model