Added functionality to export a .png image of the current canvas view.