Adds ImageData set support for legacy safari

Addresses ImageData compatibility for Safari 5