Images to attachments in wordpress xml