It is legal for the other side to take pictures and videos of me without my consent?

Yes, and it happens more often than you might think.  Aggressive insurance companies and  defense lawyers often hire private investigators to watch an injured person from a distance and take photos or video to make it appear that they are not injured.  If you are injured, you should assume that this could potentially happen to you.