Vid 1945

Refactoring thumbnail controller and helper to reduce duplicate html output and add better organization to the system. 
Missing space before `onload=`