Fixed History panel styling
Added generic dialog base class. ImageDialog now extends dialog base class. Layout fixes to ImageDialog