Remove dead assignment

The value initially assigned to pix was never used.
Remove dead assignments in _image.cpp
Merge pull request #2992 from jkseppan/tidyup-misc

Remove a few dead assignments