Fixing bug causing potentially unrelated image to be included in test reports