added conditions at save/export actions
restored export to PNG function