Definitely dragonfly. Damselflies, as mentioned, have wings with thin bases. More than that, their front and back wings are approximately the same shape. Dragonflies, on the other hand, have rear wings with relatively broad bases. I didn't immediately find a identification key to the Odonata (dragonflies and damsel flies) in a quick web search, but from what I recall, most of the identification is from wing venation. I think the first photograph might be nearly enough to use a key.