Updated mocha dependency
Extracted gd.Image methods into lib/image.js