Update InputfieldImage to support attr array rather than string per enhancement issue #794