I have a function that converts image to base 64, and it accepts image url as a parameter.I am storing some into indexed DB, I only want to store data after the image has be