ACV-18: Added shared_ptrs from c++11 standard.

-"full support" for _image field (removed needless temporary variables for images)
-little refactoring