test with saving images