fix regex for iimage-mode