added support for thumbnail upload API functionality