code clean up

- removed unnecessary code for ImageViewer, Widget classes, Layout