Adding the path to 'data' folder, this is especailly useful for Mac OSX. Then we can put the 'data' folder into 'MacOS' folder within 'labelImg.app'.
If the file name contains ".", it will go wrong. e.g. hello.world.jpg --> hello.xml