some changes to maximised code, still needs fixes. pixels vector api additions