Added a method to add images