Added support for CORS enabled images