format code
fix pixel formats