The answer is here already. Work on it. Here is more background.
Graham's example depends on you storing your large image as a building block. Here is a variation.
Code:
{ IF { PAGE } = { NUMPAGES } "{ AUTOTEXT "LargeImage" }" { AUTOTEXT "SmallImage" } }
The structure of an IF Field is:
{IF expression1 operator expression2 "truetext" "falsetext"}
The field above would have your small image in one building block and your large one in a separate building block. This is somewhat easier than placing the actual images in the field, although you could do that.