Add threshold check to components comparing expected PNG files.