Add caption from attr "data-caption"

If attr "data-caption" exists, use in caption. If doesn't, use attr "title".