save as image implemented but the testWidget is broken so everytime i click any button the test widget is triggered