Fix IE9/10 aborting image

IE aborts image in progress causing corrupted images when switching to BLANK, storing image in temporary variable while switching prevents this.