Raise an error for white pixels where a dot is expected. Also abstract out the screencap opening stuff from readscreen().