Python program to read text and create a 300x300 image file of the text.