Added THFile class and thumbnails.