make a module to save images in db directly