Fix logic error: Derived images have the original as parent, not the image object