Remove some image c++ errors, and add isActive