Fix for thumbnail on UploadField + support for headers