Support for limiting sprite size from options

    Switched to Mocha
    Fixed missing documentation