add defineWith setting to ImageParent