.your-class img[style*="opacity: 0"] {
    pointer-events: none !important;
}