Fixes Issue #311

A previous version of anchor had an rtrim on the image filename before adding the extension. Added this back in and it now works correctly.