memery leak when last copy of QImage is destoryed