Moved logic from loadImage() into loadBufferedImage() to try to catch all IOExceptions in one method.