Implemented Test for loadImage()

Refactored ImageLoader class.  Changed return types and parameters for
loadImage() and parseRawData().  Fewer new objects being created.