Borrowed memcopy and switched to 16 bit color for more performance