Autoselect pixel format (crudely)