Make perspective rely on window size