Implemented autofocus, and callbacks for the save and retake buttons.