Caches often used bitmapdata

Based on https://bugzilla.mozilla.org/show_bug.cgi?id=935688 suggestion

So idea after 10 times canvas is requested, it starts returing html img. And resets after canvas is modified