Fixed undefined variable error if called without $_POST['width'] #2303