Fix #42

This should fix the problem with single channel images.