Move thumbnail code from renderer to a separate file, thumbnail. Bug: T165036 Change-Id: I6c55750ec302de6341e8e91dee34581ee66499d7