An image height and with are not always "simpleobjects", they can be "indirectobjects". Added code to handle this.