Realized that the anchor offset is calculated based on frame size and not the original source size. So need to upscale the anchor value to compensate for this