fix pan in custom_visual
add import tests and fix Line gl mode