Trying to make it transfer image in chunks and save to mongo db and then display on web page