Extend ImageResource protocol with InputStream