Add direction as a hidden field to allow images

Switching to <input type="image"> ignores the value attribute and
submits image map (x, y) values instead.  The value "direction" needs to
be a hidden input field instead.