basename method added to picture.rb class