Decrease minimum PHP version changing CURLFile class to upload images