Fixed upload images

Completed the upload php