fixed dir error for fetch image