ubuntu: use application directory for images

this should have a way to fail, otherwise it's a genuine infinite loop, which would be bad.
one approach is to fail w/ `i < 1`.