Implement Auto Focus.
Fix a Gallery mode bug.