protected CachableRed decodeImage(final SeekableStream stream)
throws IOException {
final PNGDecodeParam param = new PNGDecodeParam();
param.setPerformGammaCorrection(true);
param.setDisplayExponent(PNGGraphic.SRGB_GAMMA);
final PNGRed red = new PNGRed(stream, param);
// final String unit = (String) red.getProperty("pixel_units");
// if ("Meters".equals(unit)) {
// int dpi = ((Integer)red.getProperty(
// "x_pixels_per_unit")).intValue();
// this.dpiHorizontal = dpi * 25.4f / 1000f;