Fixed IndexSizeError in IE when the size of the image exceedes 8192 pixels
Merge pull request #320 from oosterholt/master

Fixed IndexSizeError in IE when the size of the image exceedes 8192 pixels