write multi img js part 1