refactored fake frame code a bit to make it clear that it defines color palette