working with smart pointers and pictures at home