quick fix for max viewport size (will need scrolling to get pixel results later)