A PGraphics is a subclass of PImage and you can use them interchangeably so what’s your use case?
PGraphics
PImage