Man accused of injuring girlfriend’s toddler with whipping