Add assert to check for parentNode as image's bound is used
This version of convertToQImage gets the bounding rectangle from the image. So it should only be used when the parent node exists.
This version of convertToQImage gets the bounding rectangle from the image. So it should only be used when the parent node exists.