add half image resizing