image picker demo, with thumbnails
added resizing functions