Ghost imaging for an occluded object