Sets image size when extracting view metadata

Change-Id: I2112b24a201c8c9ba46073120af8c8771854b068