How can i upload image through RESTAPI?

I want to upload image to photo field in contact, how can i do it with REST API?

Assuming this API v8, you can add files via API:

I don’t exactly know to apply this to Photo fields, but if you find out please explain and maybe we can improve that Documentation.