Added background color and more intelegent zoom scale for image viewer