returning pixel id and value as vector