revert back to original getImageData method and removes decimals