That's odd, it's working for me. Do you have a line before and after it? Have you attempted replacing the line to make sure you didn't accidentally include an invisible character?
I checked this morning and noticed that it is behaving normally (correctly hiding blacklisted images) on firefox (71), but not on chrome (81). Viewing from the index as before.