Is there anyway to specify coordinates relative to the image size ? Consider for example the following code :
\begin{tikzpicture}
\node [inner sep=0pt,above right]
{\includegraphics[width=\textwidth]{somefig.png}};
\path (0,1) coordinate (top-left);
\path (1,1) coordinate (top-right);
\end{tikzpicture}
I want the coordinates (top-left) and (top-right) to correspond to the top left and top right corners of the image. What's the simplest way to do this ?