Transformed the virtual image into a more compact and reasonable class
which handles offsets in a more streamlined way.