add autofocus and preview callback