Trim the sample image