Added texture calculation to retrieve and modified __init__.py