Implement text controls for gallery option.

[Closes #32]