implement photo upload, edit and delete