I have taken many pictures both onboard and around airports (although of course not of security/customs/immigration).
One memorable time in the SQ Business Class lounge at LHR T3, the waiting staff actually pointed out to me that my plane was arriving and that I might like to take a picture of it outside the window!