Saving images to database and reading.