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