inappropriete posts of some IDF soliders

First I would like to say I stand with Israel and I support it's right to defend itself.

But as an outsider, here's a one thing that really concerns me - the inappropriete photos and videos some IDF soliders takes and posts online. These kind of posts where soldiers inappropriately pose in destroyed homes, children rooms, mocks or worse, photos soliders take with captured Gazans (for example I saw a photo that two soldiers took with two visibly scared captured women).

I feel like this does so much harm to Israel's case especially from outsider's pov. It just makes people angry and gives free arguments to propali supporters. And it's absolutely unnecessary. You can then have one a video of IDF soldiers helping Gazans and bringing humanitarian aid but it gets shaded by these problematic posts.

Is someone doing something about it? Does these soliders get any form of punishment or something? Are army's officers fine with it? People must see how this is just doing harm and nothing else.