Scaled images to fit screen.

Found a post on stack overflow about doing this, took their solution,
cited it in the class if you want to look at it.  Both the preview image
and retrieve image are now scaled correctly.