fix imagep(..., drawPalette="space") bug  (#479)