You can try this:
import base64
png_recovered = base64.decodestring(png_b64text)
'png_b64text' contains the text from your mongoDB image field.
Then you just write "png_recovered" to a file:
f = open("temp.png", "w")
f.write(png_recovered)
f.close()
Just replace 'png' with the correct format.