CURLFile support for audio and images

Added support for image files (useful for uploading artworks and
avatars). Added CURLOPT_SAFE_UPLOAD to disable E_DEPRECATED when
CURLFile is used.