fix thumbnail mode
changing the definition of the temporary folder
fix path of image for temporary image
fix cs