added a function translating RGB-888 to RGB-565