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