Added VIEWER_MARGIN constant.