normalize image permission attributes
run karma/mocha from Grunt