[fix bug 1082208] Support media files and CDN.

You're right. Despite `_generate_filename` returning the same filename, the default storage is adding a `_1` extension to it if it exists in the storage. I added a overwriting storage to the equation and everything looks good now.