creating Photo object