wavelet_transform: Made sure that image was converted to the correct type (float32) inside the function "wavelet_transform".