fix image cursor bug