The board may provide for transporting the needy sick to and from hospitals to which they may be sent by authority of the board, and may provide for transporting indigents to other counties or states when such indigents will thereby cease to become public charges, or when friends or relatives of such indigents agree to assume the cost and expense of the care and maintenance of such indigents, or when such indigents are legally public charges in the places to which they are so transported.