Thanks to Karthikeyan for customizing the Auto Post Images (API) wp-plugin.