photo capture debug