add photo capture and snapshot