York man sentenced after taking plea deal in child pornography case