Added support for image thumbnails in file upload.