Maintain canvas element's original aspect ratio on resize