set layer content with CGImage