function _fitImage() {
		var height = (!data.isMobile) ? data.viewportHeight : data.containerHeight - data.metaHeight,
			width = (!data.isMobile) ? data.viewportWidth : data.containerWidth

		if (data.isWide) {
			// WIDE
			data.targetImageWidth = width
			data.targetImageHeight = data.targetImageWidth * data.ratioHorizontal

			if (data.targetImageHeight > height) {
				data.targetImageHeight = height
				data.targetImageWidth = data.targetImageHeight * data.ratioVertical
			}
		} else {
			// TALL
			data.targetImageHeight = height
			data.targetImageWidth = data.targetImageHeight * data.ratioVertical

			if (data.targetImageWidth > width) {
				data.targetImageWidth = width
				data.targetImageHeight = data.targetImageWidth * data.ratioHorizontal
			}
		}

		// MAX
		if (data.targetImageWidth > data.imageWidth || data.targetImageHeight > data.imageHeight) {
			data.targetImageHeight = data.imageHeight
			data.targetImageWidth = data.imageWidth
		}

		// MIN
		if (data.targetImageWidth < data.minWidth || data.targetImageHeight < data.minHeight) {
			if (data.targetImageWidth < data.minWidth) {
				data.targetImageWidth = data.minWidth
				data.targetImageHeight = data.targetImageWidth * data.ratioHorizontal
			} else {
				data.targetImageHeight = data.minHeight
				data.targetImageWidth = data.targetImageHeight * data.ratioVertical
			}
		}
	}
/**
	 * @method private
	 * @name _fitImage
	 * @description Calculates target image size
	 */
@method private
@name _fitImage
@description Calculates target image size
@method private @name _fitImage @description Calculates target image size
function _fitImage() {
		var height = (!data.isMobile) ? data.viewportHeight : data.containerHeight - data.metaHeight,
			width = (!data.isMobile) ? data.viewportWidth : data.containerWidth
		if (data.isWide) {
			data.targetImageWidth = width
			data.targetImageHeight = data.targetImageWidth * data.ratioHorizontal
			if (data.targetImageHeight > height) {
				data.targetImageHeight = height
				data.targetImageWidth = data.targetImageHeight * data.ratioVertical
			}
		} else {
			data.targetImageHeight = height
			data.targetImageWidth = data.targetImageHeight * data.ratioVertical
			if (data.targetImageWidth > width) {
				data.targetImageWidth = width
				data.targetImageHeight = data.targetImageWidth * data.ratioHorizontal
			}
		}
		if (data.targetImageWidth > data.imageWidth || data.targetImageHeight > data.imageHeight) {
			data.targetImageHeight = data.imageHeight
			data.targetImageWidth = data.imageWidth
		}
		if (data.targetImageWidth < data.minWidth || data.targetImageHeight < data.minHeight) {
			if (data.targetImageWidth < data.minWidth) {
				data.targetImageWidth = data.minWidth
				data.targetImageHeight = data.targetImageWidth * data.ratioHorizontal
			} else {
				data.targetImageHeight = data.minHeight
				data.targetImageWidth = data.targetImageHeight * data.ratioVertical
			}
		}
	}
function _fitImage ( ) { var height = ( ! data . isMobile ) ? data . viewportHeight : data . containerHeight - data . metaHeight , width = ( ! data . isMobile ) ? data . viewportWidth : data . containerWidth if ( data . isWide ) { data . targetImageWidth = width data . targetImageHeight = data . targetImageWidth * data . ratioHorizontal if ( data . targetImageHeight > height ) { data . targetImageHeight = height data . targetImageWidth = data . targetImageHeight * data . ratioVertical } } else { data . targetImageHeight = height data . targetImageWidth = data . targetImageHeight * data . ratioVertical if ( data . targetImageWidth > width ) { data . targetImageWidth = width data . targetImageHeight = data . targetImageWidth * data . ratioHorizontal } } if ( data . targetImageWidth > data . imageWidth || data . targetImageHeight > data . imageHeight ) { data . targetImageHeight = data . imageHeight data . targetImageWidth = data . imageWidth } if ( data . targetImageWidth < data . minWidth || data . targetImageHeight < data . minHeight ) { if ( data . targetImageWidth < data . minWidth ) { data . targetImageWidth = data . minWidth data . targetImageHeight = data . targetImageWidth * data . ratioHorizontal } else { data . targetImageHeight = data . minHeight data . targetImageWidth = data . targetImageHeight * data . ratioVertical } } }
@method private
 @name _fitImage
 @description Calculates target image size
@method private @name _fitImage @description Calculates target image size
// WIDE // TALL // MAX // MIN