correct the parameter of CreateImage to avoid green area