add saving image files
check if tmp is exist if not create one