buaazp: use memmove replace memcpy in wi_gray() to improve performance