Spatial registration and normalization of images