remove on image error - using function from gbi.editor
remove startsWith and endWith and using match
update gbi.editor