added functions to load images from your computer and show browser preview