public SplashPicture(String pathToFile) {

		BufferedImage bimg = null;
		try {
			bimg = ImageIO.read(new File(pathToFile));
			img = new ImageIcon(bimg).getImage();
		} catch (Exception e) {
		}

		if (img == null || bimg == null) {
			try {
				bimg = ImageIO.read(new File("/splash.png"));
				img = new ImageIcon(bimg).getImage();
			} catch (Exception e) {
			}
		}

		if (img == null || bimg == null) {
			try {
				img = new ImageIcon(getClass().getResource("/splash.png")).getImage();
			} catch (Exception e) {
			}
		}

		repaint();
	}