private static Point getCornerPoint(Corner cor, int width, int length) {
        final int mw = width - (width % 2 == 0 ? 1 : 0);
        final int ml = length - (length % 2 == 0 ? 1 : 0);
        Point p;

        switch (cor) {
            case NE:
                p = new Point(1, 1);
                break;
            case SE:
                p = new Point(mw - 2, 1);
                break;
            case SW:
                p = new Point(mw - 2, ml - 2);
                break;
            case NW:
                p = new Point(1, ml - 2);
                break;
            default:
                p = null;
        }

        return p;
    }