Hi Lenovo27,
Thanks for sharing! This is a nice technique.
You can also use Qdabra's qRules to save images to a SharePoint picture library. qRules automatically converts the picture to a link and uploads in the background which provides a nice performance advantage for the end user and doesn't require code nor custom workflows.