Store image into database.