Gerard
It sounds like you haven't yet created an instance of object PImage. When you click the New button, Mendix generates a new, uncommitted instance of P that displays in the form. But Mendix does not create an instance of PImage.
This will likely take some microflow work to ensure that you have an instance of P_Image created for the new instance of P you are trying to create....
Mike