DecodingImageSource source = new IISDecodingImageSource(iis);
OffscreenImage image = new OffscreenImage(source);
// The interrupted flag should be cleared because ImageDecoder interrupts
// current thread while decoding. The same technique is used in
// ImageLoader#run(). Another solution can be to create
// a separate decoding thread. However, decoder keeps its own pool
// of threads so creating a new thread will be just a waste of resources.