add functions for get ir image