implementing pixels, consolidating pimage methods, closes #42