Add autofocus, fix last tile bug