Utility for screenshot testing