Dictionary Learning Based Image Reconstruction for Spectral CT