improved loading of images
added method for loading available data from InputStream into a String