Enable overriding image upload function through options.

Useful if you want to store your images elsewhere instead of base64 encoding them in the post itself.