I am writing a paper for my college and I use the tcolorbox package. What I am trying to do is using simultaneously the tcbincludegraphics but with the tcbcounter, and not another counter. I want to automate the label so that I don't need to add the label every time I add a tcbincludegraphics. This shoud be confusing for you. Here is a MWE :

```
\documentclass[11pt, a4paper, dvipsnames]{book}

\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[many]{tcolorbox}
\usepackage{xcolor}

\newcommand{\myfigure}[2][]{\tcbincludegraphics[title=Figure~{#1}]{#2}}

\begin{document}

\myfigure[test]{latex.png}

\myfigure[test 2]{latex.png}

\end{document}

```

What I am looking for in this MWE is something like "Figure 3.5 - Test" which includes the counter and labels so I can make a reference like \ref{fig:test} and LaTeX give me something like "Figure 3.5". I am looking for an automatic label in the preamble which take the name #1 so that I am not forced to do every time `label{fig:test}` and `label{fig:test 2}`etc.

Thank you in advance ^^