Extra debugging on photo taking