Some gfx fixes and tests

All the tests have been validated on a real Nokia Asha 503
Was there any other license info, besides this notice, in the location from which you retrieved this test? And can you add a reference to that location here (and a reference to this license in the top-level LICENSE file)? The domain name corej2me.com doesn't resolve, so presumably that isn't the source.