Taking photographs

Q: What is the verdict on taking photographs? Recently in many newspapers prominent masajid & organizations were photographed after distribution of aid, blankets etc. could the maslah be explained please?