Lots of reasons. Your 2 lines of code are not enough to say which one.
Have to tested that the program is finding the image? Use a File object with the path to the image and print its absolute path...