Implement Surface.convert, .convert_alpha, and .get_masks.