Add support for crossOrigin option in readImage