Expression strings refer to sockets by name. The sockets can be either input or output sockets. Expressions perform operations based on numerical values, therefore you do not access pixels in the context of expressions. However, you can still access numerical values of image attributes such as height and width.