Bash: function to show images in the terminal