Add jshint, use lodash.defaults, reduce complexity, add configurable width/height.