Vacuum gripper using mask with pattern corresponding to workpiece to be lifted