test_image.m reimplemented; old one put ot legacy folder;