Added saveItem and handleFileUpload methods, and ThumbnailGenerator class.