Added importing images and previewing them.