Add set_type() and set_dimensions() to ImageParam.

(Note that these are currently of limited usefulness, but will be quite
useful if/when the Generator branch lands; proposing this change here
to reduce noise there.)