#NEWLINE# def _create_image( format , * a , **kw ) : #NEWLINE# #INDENT# buf = TemporaryFile ( ) #NEWLINE# Image . new ( * a , ** kw ) . save ( buf , a ) #NEWLINE# buf . seek ( 0 ) #NEWLINE# return Image . open ( buf )