removed several functions, which complicate current implementation; added functions to support ir intensity frames