void setTransform() {
        //Center the image
        //Third Transform
        if(orientation == 0) {
            at = AffineTransform.getTranslateInstance(x, y);
        }
        else if(orientation == 1) {
            at = AffineTransform.getTranslateInstance(x, y);
        }
        else if(orientation == 2) {
            at = AffineTransform.getTranslateInstance(x, y);
        }
        else if(orientation == 3) {
            at = AffineTransform.getTranslateInstance(x, y);
        }
        if (orientation == 0) {
            at.quadrantRotate(orientation);
        }
        else if(orientation == 1) {
            at.quadrantRotate(orientation);
        }
        else if(orientation == 2) {
            at.quadrantRotate(orientation);
        }
        else if(orientation == 3) {
            at.quadrantRotate(orientation);
        }
        
        at.scale(scale, scale);
        
    }