Doesn't appear images are actually stored, just linked. So imgur or whoever would, presumably, remove it and miners would just have a broken link in their blockchain.
I can't think of plaintext that would be both illegal and small enough to store in the blockchain.