Add replace_img feature

This adds optional replacement of img tags with the alt
text using a default format of [IMAGE: alt text] (or [IMAGE]
if there is no alt text).  A code reference may also be passed
to control the replacement.

Tests are included.