Image recognition in Matlab using Wavelets