Signal Recovery in Unions of Subspaces with Applications to Compressive Imaging