move core/layers into core/img_io
add missing viewer/layers dir