Save images to db