index.js
function (path, image) {

		if (image instanceof Buffer) {
			return Promise.denodeify(PNGImage.loadImage)(image);

		} else if ((typeof path === 'string') && !image) {
			return Promise.denodeify(PNGImage.readImage)(path);

		} else {
			return image;
		}
	}
function (path, image) {

		if (image instanceof Buffer) {
			return Promise.denodeify(PNGImage.loadImage)(image);

		} else if ((typeof path === 'string') && !image) {
			return Promise.denodeify(PNGImage.readImage)(path);

		} else {
			return image;
		}
	}
function ( path , image ) { if ( image instanceof Buffer ) { return Promise . denodeify ( PNGImage . loadImage ) ( image ) ; } else if ( ( typeof path === 'string' ) && ! image ) { return Promise . denodeify ( PNGImage . readImage ) ( path ) ; } else { return image ; } }
Loads the image or uses the already available image

@method _loadImage
@param {string} path
@param {PNGImage} image
@return {PNGImage|Promise}
@private
Loads the image or uses the already available image