data.php3 should reference the picture as an absolute path (/content/image.jpg) because anything that is not absolutely referenced will be referenced accoring to the script it was called from, in this example its template.php3. If data.php3 just has <IMG SRC="image.jpg"> then it will look for the image.jpg in the same directory as where the script it was called from resides.
-Chris