update deprecated caption2 package to new caption

The package caption2 conflicts with some other packages and has a deprecated message