from Bytes
Creates an image source from an encoded image held in memory.
The array is not copied and must not be modified while the source is in use.
Return
created image source, which must be closed when no longer needed.
Parameters
bytes
encoded image.
Throws
if the format is not supported.