Added grid width and height option