Fixed scaling and debug rendering