PHP Function to upload, resize and watermark a picture