imageproc completely works, but result.php doesn't