PImage img; PImage img1; void setup() { size (700,1000); } void draw() { if (mouseButton == LEFT) {img1 = loadImage("left.png"); image(img1, 0, 200);} else if (mouseButton == RIGHT) {img = loadImage("right.png"); image(img,250,0);} else {background(random(222),random(250),random(238));} }