function apply(lmbAbstractImageContainer $container)
 {
     $width = $container->getWidth();
     $height = $container->getHeight();
     $wm_cont = new lmbGdImageContainer();
     $wm_cont->load($this->getWaterMark());
     $wm_width = $this->getXCenter() ? $wm_cont->getWidth() : false;
     $wm_height = $this->getYCenter() ? $wm_cont->getHeight() : false;
     list($x, $y) = $this->calcPosition($this->getX(), $this->getY(), $width, $height, $wm_width, $wm_height);
     imagecopymerge($container->getResource(), $wm_cont->getResource(), $x, $y, 0, 0, $wm_cont->getWidth(), $wm_cont->getHeight(), 100 - $this->getOpacity());
 }