Study of B -> X gamma decays and determination of vertical bar V(td)/V(ts)vertical bar RID C-5223-2009