Added conversion to pixel array and template for visual test