added resize image stuff

Change-Id: I3ab02a03ea908d2db8af443d2f521433e2b8797f