Strip leading and trailing whitespace from searches.
Add class documentation for ImageList helpers.
Rubocop style recommendations.