First go at improving captureImage. [1660]

captureImage itself remains unchanged, but now there is a (VERY
TEMPORARY) _Display._testCaptureImage method where the work will be
taking place.

I’m not terribly happy with the approach introduced by this commit, but
I’m drawing a blank coming up with something better. Suggestions are
welcome!