Add offset to arrays to avoid cropping the rectangle