Imaging polarimetry of the blue compact galaxy NGC 3125