Added procedure to insert images.