RealImage.py added for generation calculations