Create destination directory if it does not exists

Destination directory (Temp) must be present to write the tile images correctly. Added a check to see if the destination directory exists, and create if it doesn't.