Added functionality to the controller to allow adding a picture