custom functions based on official UTFT library to handle RGB565 raw picture files correctly