Optometrist sentenced to three years for fraud