Apllying patch from PNG to restart camera process in case it died. We try up to 10 times to restart the process before giving up. Fixes #312
Merge pull request #313 from codewithpassion/bug/312-camera-restart-on-failure

Restart camera process in case it died.