fix image path in python realtime