now we can generate figure caption