The commutants of certain Toeplitz operators on weighted Bergman spaces