PImage img; void setup() { size( 800, 600 ); img = loadImage( "success_boy.png" ); img.resize( 300, 0 ); } void draw() { background( 255 ); imageMode( CORNER ); image( img, 0, 0 ); image( img, width - img.width, height - img.height ); imageMode( CENTER ); image( img, mouseX, mouseY ); }