Removed redundant forward class declaration
Made it so the +- 0.5 will work in the CornerImage example.
Ext pointer error fix

Fixed pointer error where we were adding a char to a pchar literal,
returning a pointer to bad memory.

Changed the inner loop to a switch stamement allowing for better
compiler optimization.
Merge pull request #21 from matiu2/master

fix compiler warning and optimization