fixed testSaveImage