Add a generic type to define a image region in the thrift interface

Change-Id: I5205740213dfdbea077406af136e36ae4fc70e28