The owner of an XL Bully dog which violently attacked a 12-year-old girl leaving her needing hospital treatment has been jailed.