fix image location bug