use getRGBLine images if available

Speeds up greatly files from bug #66928

E.g. some file went from 21s to 2s in my computer
1 file changed