committing complete code for picture uploader using webcam plus with browse and drag drop option