The anchor point has to be set up consistently when creating the art, otherwise there will be no way of getting the correct anchor point. Best option is to change the source artwork adding empty space where necessary to keep it consistent. Alternatively, you can set up custom anchor points on the frames which are incorrect if there aren't too many of those...