Count the number of files and directories in a given folder minus the thumbnail folders and thumbnails.
Delete any tmp image files.
Create unique tmp image file name.
Copy a file from source to destination. If unique == true, then if the destination exists, it will be renamed by appending an increamenting counting number.