Adding ScaledVector class

Updates to allow easier changing of the physical space size and the
image size.
Automatic mapping from physical to image spaces.