Question on photographs

Salam Sayyidi Dara and Salam to all.

I was wondering of what are the REAL Commandments regarding photography.It seems Islamic Sharia’ is very Strict at this point.Yet we often have seen usage of photos in Sayyidi Dara’s works and Yes-those photographs indeed touches us and teaches us.
So could you please tell more on this point?