swapped image plane deletion before renderGlobal setup