Address maxheight for file viewer.

Begins work on #153 

Additional work will have to be done to the image viewer to close the issue once #141 is complete.