changed logic for facebook image