Fix for #1237

Only set crossorigin on the element if something is specified.  Otherwise empty crossorigin causes issues with loading images in Firefox > 28