CSS bug fixes. Also added resizing to image viewing and put a cap on image size