debugging error with resize.php