Sprite.js: Fix for colored rectangles

Here is the sprite.js fix to add back the correct functionality for
drawing colored rectangles instead of images.
Merge pull request #93 from videlais/master

Sprite.js: Fix for colored rectangles