add a trick to fix image path when they contain a space (only for notebooks)