Refactoring in TheImage class: break down lengthy conditions in the if statement; spacing and indentation
More refactoring in TheImage class: removed instance data fields (startX and startY) and replaced its usage with local variable; modified updatePixel() which is now updateImage()