Added auto_mkdir option to image service