Finally make the weight function work

Now the meta box image will check the featured image weight.