use mongodb to store images