fix aspect ratio bug when switching cameras