fix bug in supporting ir images