added parseImageDefinition() and test, which succeeds