Added exportPNG and exportJPG