fixed folder exists bug

if src folder did not exist, images were not created