Removed absolute data subtraction.
Replaced array bracket notation with image width and height getters.