print an error message instead of a stack-trace if we can not open the image file