JavaScript: Background color picker (pick color from image by clicking on it)