Fixed issues with aligning images