Camera optimization