Frame work to test on image dir