allow dynamic setting of a controllers template

add phots/new for saving new photos to the system