Don't swallow the stack trace. Handle the case when the image cannot be found and don't throw an NPE in that case.