added fillRect and getImageData without polluting the global namespace
added tests
create variable prototypes
tiny change to test