Vid 1945

Refactoring thumbnail controller and helper to reduce duplicate html output and add better organization to the system. 
Minor: For consistency, let's make variable names camelCase