callback for displaypng when finnished