Modify text2img

Modify text2img function & delete useless files