Corrected cross origin image loading.

Now it allow image insert from most locations.