not getting base64 string of every image laoded