The general rule in IRAF is that extensions to image names are not needed. However, with the introduction of QPOE files, both *.qp and *.imh have become defaults to most tasks. A few things to bear in mind for correct results when the extensions are not explicitly given:
sp> qpspecsource qpoe file: xdata$rp110590
However, when in doubt, give the full name with extension.