Margins color detection now handles every file