for php version, on index.php you need to pass this option:
$upload_handler = new UploadHandler(array(
'image_versions' => array()
));
you can see more about how it works on UploadHandler.php, it is better to specify override options on index.php(like my example), so you don't have to change UploadHandler.php
for html to not show the thumbnail you can use this on the js:
$('#fileupload').fileupload({previewSourceFileTypes: /^disabled$/});
That is kinda documented in the code on file jquery.fileupload-ui.js, same thing, try to use the options as in the example instead of changing jquery.fileupload-ui.js