wip: bits per pixel fix
wip: n-d conversion