public final BufferedImage loadStoredImage(String current_image){
  if (current_image == null) {
    return null;
  }
  current_image=removeIllegalFileNameCharacters(current_image);
  final String flag=image_type.get(current_image);
  BufferedImage image=null;
  if (flag == null) {
    return null;
  }
 else   if (flag.equals("tif")) {
    image=loadStoredImage(current_image,".tif");
  }
 else   if (flag.equals("jpg")) {
    image=loadStoredJPEGImage(current_image);
  }
 else   if (flag.equals("png")) {
    image=loadStoredImage(current_image,".png");
  }
 else   if (flag.equals("jpl")) {
    image=loadStoredImage(current_image,".jpl");
  }
  return image;
}

public final BufferedImage loadStoredImage ( String current_image ) { if ( current_image == null ) { return null ; } current_image = removeIllegalFileNameCharacters ( current_image ) ; final String flag = image_type . get ( current_image ) ; BufferedImage image = null ; if ( flag == null ) { return null ; } else if ( flag . equals ( "tif" ) ) { image = loadStoredImage ( current_image , ".tif" ) ; } else if ( flag . equals ( "jpg" ) ) { image = loadStoredJPEGImage ( current_image ) ; } else if ( flag . equals ( "png" ) ) { image = loadStoredImage ( current_image , ".png" ) ; } else if ( flag . equals ( "jpl" ) ) { image = loadStoredImage ( current_image , ".jpl" ) ; } return image ; }
load a image when required and remove from store
