Adding plot functions and images