Added code for displaying pictures