fixed mistakes in png storage in mongo