Fixed main module up a bit, moved mkdir and download-images functions instead.