Add function to show 8/16 bits pixel data