added photo endpoint