change the way to get photo message

targetting different div class