Revert "find where error occurs for taking device photos"

This reverts commit 24282df65088b713b16efc408aa1a2e6c863948d.