A lot of messy testing for adding image tag.