MADS: Implement palette shifting for loaded sprites