add new function to read image from data base
Merge origin/master