fix image name lookup issue, should map image path to full path in case the search path is set