#NEWLINE# def __init__( self , resource_factory , filename = None , data = None ) : #NEWLINE# #INDENT# ' Creates a new image reference. ' #NEWLINE# self . resource_factory = resource_factory #NEWLINE# self . filename = filename #NEWLINE# self . data = filename #NEWLINE# return