public static MockImageContext newSafeInstance() {
MockImageContext ic = new MockImageContext(false);
ImageImplRegistry registry = ic.getImageManager().getRegistry();
registry.registerPreloader(new PreloaderTIFF());
registry.registerPreloader(new PreloaderJPEG());
registry.registerPreloader(new PreloaderEPS());
registry.registerLoaderFactory(new ImageLoaderFactoryInternalTIFF());
registry.registerLoaderFactory(new ImageLoaderFactoryRawCCITTFax());
registry.registerConverter(new ImageConverterBitmap2G2D());
registry.registerConverter(new ImageConverterG2D2Bitmap());
registry.registerConverter(new ImageConverterBuffered2Rendered());