Applying patch from PNG to restart camera process in case it died. We tr...

...y up to 10 times to restart the process before giving up. Fixes #312