background(0, 0, 255); Re-drawing the background clears previous images. Commenting out this line allows images to build up.