Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
Is photography forbidden, such as photographs of children?
All perfect praise be to Allah the Lord of the Worlds. May Allah`s peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
If there is a need for taking photographs of children or adults, then this is allowed. However, taking photographs of women shouldn`t be tolerated. Rather, they must be taken while wearing Hijab and must be kept in safe hands. And Allah The Almighty Knows Best.
Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
Has Islam made it incumbent on us to give our children particular names?
No, it hasn`t, but it is desirable that we give them good names.