Added CLI and ability to pass in directories. Also cleans temp directory before creating images.