Adds ImageData set support for legacy safari

Addresses ImageData compatibility for Safari 5

See https://groups.google.com/forum/#!topic/mozilla.dev.pdf-js/nmaNFZJA0Sc