gridding out a picture