There is a problem that non-visible components of a gui are made visible during the process and appear in the saved aa-image. I cannot quite work it out.
It happens in this row:
print(self.source_fig,['-r',num2str(1*screen_DPI*self.K(1))], '-dpng', tempfile);
Appart from that, for non GUI export I love this function to bits!