Just make ${images_dir} global and set it to /images, no need
to pass it around (setting the same global variable) through
function calls.