add photo functionality