Added a method to handle a picture and a method to handle file. Modfied some of the template files.