These four lines should not be need. The lines above are a special case for `canvas_width/canvas_height` that does not apply in normal cases.