Add resizing processing