Set proper pixel format