code: protected static String adjustImagePath (String imagePath)
      {
          int didx = imagePath.lastIndexOf(".");
          return ((didx == -1) ? imagePath :
                  imagePath.substring(0, didx)) + ".raw";
  
      }
docs: Replaces the image suffix with <code>.raw</code>.