the first version of my bot was pixel-based too,
its simple to resolve this problem, create two global variables with the offset of the map drawing start position and in every action that you takes, its just add this values
Or you can just change the windows theme to "Classical"