Image resize

Add image resize functionality