Added some testing functions for photo capture