public SimpleImage loadImage(String pFilename) throws Exception {
File file = new File(pFilename);
if (!file.exists())
throw new FileNotFoundException(pFilename);
Image fileImg = Toolkit.getDefaultToolkit().createImage(pFilename);
MediaTracker tracker = new MediaTracker(owner);
tracker.addImage(fileImg, 0);
tracker.waitForID(0);
int width = fileImg.getWidth(null);
int height = fileImg.getHeight(null);
BufferedImage bImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
Graphics g = bImg.getGraphics();
g.drawImage(fileImg, 0, 0, null);