align_image_stack
is free and part of the Hugin tools. However, sometimes aligning images fails, or will give you awkward results - especially in the case of blurry images with little contrast. So it either finds no match between pictures, or the pictures will be rotated by 40 or 70 degrees even if you have used a tripod...
So, what can you do?