thumbnail of regular 1.PNG
thumbnail of regular 1.PNG
regular 1 PNG
(152.23 KB, 898x473)
thumbnail of regular 2.PNG
thumbnail of regular 2.PNG
regular 2 PNG
(32.68 KB, 582x670)
thumbnail of op 1.PNG
thumbnail of op 1.PNG
op 1 PNG
(109.94 KB, 934x512)
thumbnail of op 2.PNG
thumbnail of op 2.PNG
op 2 PNG
(13.21 KB, 912x249)
 >>/19104/
I have tested it on one of my boards, and it works perfectly fine, both for regular post images and thread OP images.
Regarding image spam, you can ban images by file hash, specifically on your board. Probably not very useful if the spammer keeps finding new shock content images, but at least it's something.