Fixing photo dialog launching multiple webcam streams
when user clicks on launch photo button more than once