make sure photos in posts respect target setting

links on photos in posts should respect the user’s setting about
whether links open in a new window or not.