fix image moving bug