Added ob_start();
 to upload.php and choseimg.php