Fixed assert bug and negative height Bitmaps
Added an option to change the size of the Viewer window