For generating the image from xml generated by Rad Diagram Control