I just see one problem with this solution. You can't create Retina images out of base64 strings on any web browsers today.
Why not? There's no such thing as a 'retina image', they're just a larger resolution. There's nothing stopping you from requesting a @2x set of thumbnails