Rodolfo I chat with Google Support last night, they said no problem to store the image using your script. Since i am admin for my organization google drive account, so i can store it. Plex also supported Google Drive . But they suggest to use Google Cloud for more stable.Goggle Cloud is what Google allows you to use and it is already supported.
Beginning August 31st, 2015, web hosting in Google Drive for users and developers will be deprecated. You can continue to use this feature for a period of one year until August 31st, 2016, when we will discontinue serving content via googledrive.com/host/[doc id].
Rodolfo , i asked Google Support via chat and they said im allowed to store the image using image hosting script.I understand that you want to use Google Drive because is free, but it won't happen because they don't allow to use that service in that way.
What Google allows you to do with Drive is to sync content, backups, upload/download content but for logged users only. It also doesn't allow you to cache those contents so every time you need an image will need to call Google API making the experience slower and disabling lots of features like image embedding.
That's why Google has a wide range of solutions and I won't put something that will only get trouble.
Google Drive could be used to do auto backups and things like that, but not as a storage server.