Fixed an issue with image alignment