Support for limiting sprite size from options

    Switched to Mocha
    Fixed missing documentation
Fixed in c4a130d