Check the image-dir before creating it

Check the image-dir before creating it

Signed-off-by: Chuck Short <chuck.short@canonical.com>