Want My Own Shape for this code

I want to add my own image/shape to this code. This is the code from processing I want to add the image to:

int num = 50;
int[] x = new int[num];
int[] y = new int[num];

void setup() {
size(100, 100);
fill(255, 102);

void draw() {
// Shift the values to the right
for (int i = num-1; i > 0; i–) {
x[i] = x[i-1];
y[i] = y[i-1];
// Add the new values to the beginning of the array
x[0] = mouseX;
y[0] = mouseY;
// Draw the circles
for (int i = 0; i < num; i++) {
ellipse(x[i], y[i], i/2.0, i/2.0);

Please elaborate- do you want to loadImage and display image with image() command underneath the graphic?

See reference loadImage and image please

Welcome to the forum! When you post, please help us help you by formatting your code. You can still edit your top post to fix it.

Here is that reference page: