Add utils for image processing

Change-Id: Ibbed3b2928c3c9d6105855d3e66d7fedaece0efd