X-rays are often the first line of imaging due to their availability and quick turnaround time. They are particularly useful in diagnosing pneumonia, showing characteristic infiltrates or consolidations. X-rays can also detect osteomyelitis by revealing bone erosion and periosteal reaction.