fixed the requirement to click the upload button twice and execute the getImageData method from the console - next: restyle the button and do intelligent image sampling based on the size of the image