Add photo activity not working

Created an add photo activity based on some online code, but it isn't
quite working