iPhone/iPad Lock Screen Image

I have an app the creates an image to be used on a devices Lock Screen. The image is automatically created to match the specs of whatever device/model it is created on.

Is there a way I can detemine the metics so the image I create does NOT interfere with the Date/Time and “Press Home to Open” messages?

The area in RED… I would not expect the distance from the top of the screen to the bottom of the time and from the bottom of the screen to the top of the message to be constant

Seems the “safe” area for the top of the red square is about 24% of the total device height