added texture support to main script