Exit when last element

Closes https://github.com/weblinc/picture/issues/14