approximate test for lossy image writing