Added some basic javadoc to the source code. It's probably not very
good, but it should work.
Refactored the image classes to use private members and getter/setter
functions.