Are you sure you have the images # right? The one with 2 in folder conditions should fail, the one with one should work. Or, the doesn't contain is messing with my logic.
2 in folders fail because when you use a field twice, it or's the conditions. if it doesn't contain a it's going to contain b and if it doesn't contain b, it will contain a. Try using In folder doesn't contain name1 OR name2 or use the query builder.