make it return an array of base64 strings instead of saving the images and returning a path