Support 'thumb=$1' option for images.

Change-Id: Ice79d2d8eb150d17a544b9427f373f91a763c875
Merge "Support 'thumb=$1' option for images."