rewrite testSaveLoadedImage completely