PHP sample code which upload image to server and make thumbnail for the image