This method should probably just return a boolean as an isSimilarToScreenshot to reduce the dependency on junit in here.
Same idea applies to line 171