Raspberry Pi frame buffer optimization