What does Islam say about drawing pictures of people or taking photos? 

In case it is prohibited, then I must mention that i cannot fly to mecca to perform umrah or hajj without there being a photo of me on the passport.

Are photos prohibited? Are they not? Does the permission depend upon the use/context?