error message if https
added progressbar for image loading