Simple PHP script to upload and split an image into separate images