New methods for deep dictionary learning and for image completion