Capturing image from web cam using java