Change how tileCount is calculated.
Make sliceSpriteSheet into an instance method, sliceIntoFrames
Support optional frameCount and neaten up code.
Optimization: Utilize a label for the break statement.

No other way to break out of the outerloop.
Add documentation to method.
Some name normalization.
"_default" constructor to avoid instantizing a new CanvasElement.