I suppose that you could break Windows' auto-repair by explicitly putting deny-all write permissions on the registration keys, but I don't see any good coming from that method. Tinkering with system internals is rarely a good thing.
It's a pretty silly restriction anyways, because most image viewers don't care about the file extension (try renaming a JPEG to .BMP and it will probably open just fine!)