added grey to gimagewritexpm.c