modified BorderImageSample