added grid_size variable to transformation.py