protected BufferedImageFactory getBufferedImageFactory(final T params) {
        if (params == null) {
            return new SimpleBufferedImageFactory();
        }

        final BufferedImageFactory result = params.getBufferedImageFactory();

        if (null != result) {
            return result;
        }

        return new SimpleBufferedImageFactory();
    }
Gets an instance of IBufferedImageFactory based on the presence of a specification for ImagingConstants.&#46;BUFFERED_IMAGE_FACTORY within the supplied
params.

@param params optional parameters.
@return A valid instance of an implementation of a IBufferedImageFactory.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java