moving the logic to get FB images