debuged aligning of images and got final stacking working