fix image dir bug