Added setAxes method to ImageMetadata

Added a convenience method to ImageMetadata that sets both the axis
types and axis lengths in a single signature.

Motivated by the restructuring of axis types and axis lengths, as the
lengths can no longer be set independently of the types.