to_image_name = "{.user_name}-{}-{}.png".format # to_image_name is now a *function*. # Use it later like so: to_image_name(user, 32, 32) # Which results in a string like: 'jsmith-32-32.png'