the exception should be handled better than that. 
Program should inform that the wanted image wasn't found.