migrates tests to mocha framework
dont modify incoming image objects
migrate to jshint