Added NULL test to version_string so renderer init can fail more gracefully when the context is not created right. Also added a missing test for NULL context gotten from SDL so init should fail early instead of getting to version_string. Fixed CopySurfaceFromImage() for when result->pitch is smaller than source_pitch.