public MyImageDisplay(Class cl) throws Exception {
        super();
        this.cl = cl;
        if (PathedImage.class.isAssignableFrom(cl)) {
            Field field = cl.getField("file");
            this.file = (File) field.get(null);
            this.image = ImageIO.read(this.file);
            if (ConectedTexture.class.isAssignableFrom(cl)) {
                this.isConnected = true;
                this.conectedTexture = new ConectedImageDisplay(this);
            } else {
                this.isConnected = false;
            }
        }
    }