Two men who pleaded guilty Thursday to selling stolen autopsy photos of JonBenet Ramsey to a tabloid newspaper must write letters of apology to the Ramsey family, a Boulder County judge ordered.