FIX Issue 8 : Thumbnails aren't created

The thumbnail are created but they are not uplaoded. The problem is cause in the generate_attachment_metadata method. The base file name is append in the file and url path. 
I change the way those tow paths are generate.