webcam image capture using jpegcam js library added for user avatar