Improvements in pie_image