Put the image tag inside a block. Like
```
concat content_tag(:a, nil, ...) do
  content_tag(:img, ...)
end
```