Bugfix ofImageTypeFromPixelFormat()& swapRgb()

If not repaired, will not achieve the following example:

```

ofImage img;
ofImage imgEx;

//--------------------------------------------------------------
void ofApp::setup(){

	ofSetDataPathRoot("E:/GitHubFiles/openFrameworks/examples/graphics/imageLoaderExample/bin/data/images/");
	
	img.loadImage("transparency.png");
}

//--------------------------------------------------------------
void ofApp::update(){
	imgEx.setFromPixels(img.getPixelsRef(),img.width,img.height,OF_IMAGE_COLOR_ALPHA,ofGetMousePressed()); 
}

//--------------------------------------------------------------
void ofApp::draw(){
	img.draw(0,0);
	imgEx.draw(0,img.getHeight());
}
```