changed image dir verification code