Morphology separation in ghost imaging via sparsity constraint