/**
* Creates an image from the input stream
*
* @param i the resource
* @return newly created encoded image
* @throws java.io.IOException if thrown by the input stream
*/
public static EncodedImage create(String i) throws IOException {
return create(Display.getInstance().getResourceAsStream(EncodedImage.class, i));
}