added support for thumbnail API functionality