preserving transparency on palette images