Exciton resonance tuning of an atomically thin lens