Move JSHint settings to separate .jshintrc
Remove trailing spaces
Various lint fixes to showImages