NullPointerException error

Loading is supposed to be in setup(), but you should use those files in draw(). So try moving

for (int i=0; i<5; i++) {
    image(left[i], 50, 200, 250, 400);
    image(right[i], 300, 200, 250, 400);
  }

to draw()