whitespace cleanup
loadImage() uses NIO to perform data conversion instead of looping over pixels