Check that a SecurityPolicyViolationEvent is fired upon blocking an image.