Image Understanding using Sparse Representations