Added conditional to test for various thumbnail images