There's another solution to this problem that doesn't require Apache (for the .htaccess file to work). All that the forum parser cares about is that the URL ends in something that looks like an image extension. So all you need to do is change the adoption code like this:
Code:

Problem solved!