RichardH : fixing gui updating classname issue and other minor bugs
RichardH : exporting svg image to png