Add test for image.fromstring - refs #1805