modify the drawPictures