Drop astropy modeling from gcentroid.  Use scipy.optimize.