Hi Bat,
It appears you're facing a Coordinate Reference System (CRS) mismatch between your raster image (EPSG:4326 likely) and the Google Earth image.
This mismatch causes misalignment between the border and background.
- Confirm your raster image's CRS.
- Check Google Earth image's CRS information (might be in properties/export settings).
- If CRS differ, refer to the following documentation to know how to align them (refer to https://www.mathworks.com/help/map/ref/geocrs.html and https://www.mathworks.com/help/map/reprojection-of-graphics-objects.html for details).