fix: convert to color.NRGBA + tests
test: encode subimage + fix
refactor