Encapsulate image saving in CBehavior