public static ImageLibrary getInstance() {
    if (instance == null) {
      synchronized (ImageLibrary.class) {
        if (instance == null)
          instance = new ImageLibrary();
      }
    }
    return instance;
  }
public static ImageLibrary getInstance ( ) { if ( instance == null ) { synchronized ( ImageLibrary . class ) { if ( instance == null ) instance = new ImageLibrary ( ) ; } } return instance ; }
Singleton access

@return the Image library