Fix picture not saving to db