Trim superfluous whitespace in screenshot