-decouple db  images path from platform images path
- refactor error handling in dao callbcak
fix path is not set on image creation