updated to the sdl2.copyex functional