public void save(BufferedImage pImage, String pFilename)
   {
      try
      {
         // File needs to be in .png format to save properly.
         if (!(pFilename.endsWith(".png")))
         {
            pFilename += ".png";
         }
         ImageIO.write(pImage, "png", new File(pFilename));
      }
      catch (IOException e)
      {
      }
   }