A learning-based method for compressive image recovery