aligning the images correctly and getting rid of key observer warnings.