set cross origin attribute when loading picture into canvas before src is set