add regs and images