Only call resizing callback when the stream is finished writing