Improved loading CORS textures and videos

Fixes #69