// Here are some pieces which are constructed once, but added only if they're needed.
cp = new ColorProfile (); // Add this to phi if needed
iccp = new IccProfile(); // Add this to cp if needed
ycbcr = new YCbCr (); // Add this to phi if needed
sfc = new SpecialFormatCharacteristics(); // Add this to bii if needed
jp2000 = new JPEG2000 (); // Add this to sfc if needed
eo = new EncodingOptions ();
tiles = new Tiles (); // Add this to eo if needed
wp = null; // We leave this null so we can tell if it's been created
pc = null; // We leave this null so we can tell if it's been created