made pictures to be saved as files in db