Shift key to constrain drag to vertical/horizontal?

It would be convenient if, by holding the shift key before dragging an image, the image could only drag exactly horizontal or exactly vertical (depending on the initial direction of motion). This is an old feature in Photoshop and other programs that would make aligning an image easier.