fixed fetching of image from external source and fixed preview page