There are a lot of variables, and if you have no idea about proper road bike setup, then you should see somebody who does. The only other solution is to start by fitting yourself using the tried and true, traditional bike adjustment methods and then ride. Such a position might need to be fine tuned, and it may not provide you with the absolute most power that you can produce so you can win the big tours and get the big endorsements, but it won't be far off what you need for normal riding. Then, if you still have pain, you have a base point to move away from in terms of saddle and handlebar positions. The old school fitting rules of thumb may not be absolute "rules", but they are a reasonable starting point, and when you later move things away from that, you know where you are going with it.
A higher and/or closer handlebar is not automatically be the solution. Maybe your saddle is too far back, maybe it's too high, maybe it's too low, maybe your reach to the handlebar is too short or too long. Who knows without seeing you riding. A still photo is of limited use. This is why a good bike fitting usually usually mounts your bike on a trainer of some kind.
The low handlebar position is a bunch of extreme bull, and the high handlebar position is a bunch of extreme bull. Neither is your solution. You need a reasonable, well-balanced, moderate road riding position.