This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If you think it does, then most likely you haven't considered what the current working directory is when you run that code. The file isn't in that directory.
There's also the possibility that an exception is thrown for some other reason. Your code is specifically written to ignore such an exception, so you would be unable to find that out. Change it so that it at least tells you about exceptions:
Joined: Feb 11, 2012
The image file is in the same directory. I followed your advice and got the following error.