Fix image sizing ... oops :)
Add hack to make WIDTH/HEIGHT accessible variables work..
Add a couple of tests for CORNER modes.