The only variables you need to check collision are positional variables such as X and Y and dimensions. Since your using PImage, you can get the exact dimensions pretty easily
float playerWidth = image.width;
float playerHeight = image.height;
Also if you’re stuck on collision detection, I’d bookmark this link