There's another question that provides the answer I think should work (Automated label tagging in figure? Automated labeling?), but even when I directly copy and paste that code, the \ref function just shows my figures being labelled as fig:#1 rather than image_1.
Here's the code that's not working:
\documentclass{article}
\usepackage{graphicx}
\graphicspath{{/FieldNotes/}}
\usepackage[numbers]{natbib}
\usepackage{placeins}
\usepackage{steinmetz}
%\usepackage[margin=2cm]{geometry}
\usepackage{subcaption}
\newcommand\fig[2]{
\begin{figure}
\centering
\includegraphics[width=.8\textwidth]{#1}
\caption{#2}
\label{fig:#1}
\end{figure}
}
\begin{document}
\fig{image_1}{1} %
\fig{image_2}{2} %
\end{document}
I'm using the most recent versions of Texmaker and MiKteX
EDIT: I'm asking why when I use \ref the only labels that it's recognising are fig:#1 and fig:#2 rather than the fig:image_1 and fig:image_2 that I think it should be recognising.
EDIT 2: Got it working now, thanks!

\label{fig:image_1}which you set but do not use, as you have no\ref{fig:image_1}or are you asking about\caption{1}which is legal if weird as it produces Figure 1:1 normally you would have\caption{some text describing the figure}? – David Carlisle Dec 13 '22 at 16:22\captionworks fine (I just used 1 as a quick example caption), but when I then type\refin the actual body of the document, it only suggests\ref{fig:#1}or\ref{fig:#2}rather than the\ref{fig:image_1}that I think it should produce? – Ellie Dec 13 '22 at 16:32fig:image_1orfig:image_2– Ellie Dec 13 '22 at 16:37\figis a label. – David Carlisle Dec 13 '22 at 16:38