Python is procedural , Measurements to be declared before used in GenericImage