trying to do image resizing