If someone still has this problem, try to check the tag  image_name.format  the filename inside .xml file needs to match with the format, so convert the image only works if also your .xml has the filename tag with .jpg