Drawing a portrait with grid lines