Handle default value for number type.
Refactor calculations involved in placing images in PDF with the options of scaling image, scaling to fit, rotation, framing and positioning relative to various coordinate systems.