only define imagepalettetotruecolor if it doesn't exist