@Override
	public void handleMessage(String msg)
	{
		int id = 0;
		try 
		{
			id = Integer.parseInt(mID);
		}
		catch ( NumberFormatException nfe )
		{
			;
		}
		
		if ( id>0 && id==LANWebcam.sIdentifier )
		{
			mWebcam.takePictures(1);
			List<BufferedImage> imgs = mWebcam.getImages();
			BufferedImage img = imgs.get(0);
			if (img != null)
			{
				mUploadHandler.connect();
				if (mUploadHandler.uploadImage(img, mTimestamp + "-ROULETTE-" + LANWebcam.sUsername + ".png", "png"))
				{
					System.out.println(mUploadHandler.getRemoteAddress());
				}
				else
				{
					System.err.println("Failed to upload image");
				}
				mUploadHandler.disconnect();
			}
			else
			{
				System.err.println("Could not take picture");
			}
		}

		registerHandleMessage();
	}