Fixed channel error bug where a 1-channel image defaulted to white