image dir check