adding tempfiles lib to clear out old files, doing preview images for flipflop