#NEWLINE# def offset( image , xoffset , yoffset = None ) : #NEWLINE# #INDENT# 'Offset image in horizontal and/or vertical direction' #NEWLINE# if ( yoffset is None ) : #NEWLINE# #INDENT# yoffset = xoffset #NEWLINE# #UNINDENT# image . load ( ) #NEWLINE# return image . _new ( image . im . offset ( image , yoffset ) )