In the bindings window, not in the code.
Go to Window->Bindings
or in Validation toolkit click on the lighning bolt. That is where you should be looking for the way to reference the file size, width, and height of the uploaded image. It should be there even if you have no code on your page... it has nothing to do with the upload really.