Free Image/File Upload Script

Hey!

I need a script similar to this:
http://www.imageuploadscript.com/

Except I only need the features on the left (the uploading).

So I need a script that simply has a input and upload button, that upon upload, checks the size and type, displays an error if needed. If no error, it renames the file to prevent duplicates, and shows a links page with thumbnail etc.

On the links page I need:

Direct link, html, bb code, thumbnail, (optional) thumbnail html, thumbnail bbcode. (optional)

Anyone have one thats free and requires no link back I can add to a affiliates page or something, but no branding ?

Thanks!

Language: PHP/AJAX/CGI Are all good…