Enable overriding image upload function through options.