So i find out. I was executing the python from another path and as i used a ./ path to get the images it couldn't find it.