fix images patch