The script now recognizes the pictures and imports them correctly, next up: attach multiple pictures to one (nuxeo) document.