add photo creation functionality