I am trying to include a background image in a tikz/pgf drawing. I need to be able to draw nodes directly on certain features of the image, it thus needs to be precisely adjusted.
This would be easiest if I could somehow fix it to two nodes defining the corners of the image, like so:
\documentclass{article}
\usepackage{pgf,tikz}
\begin{document}
\begin{tikzpicture}
\node at (0,0) {a};
\includegraphics{something.png}
\node at (2,2) {b};
\end{tikzpicture}
\end{document}
Of course this does not do what I want, i.e. scaling the image so that it its top-right corner is at (2,2) and the bottom-left corner at (0,0):