surface.rs: added get_pitch, changed width and height casts to int.