Wrote a function numpy2image which produces png images from your masked numpy star array