A jquery plugin function to make img behave like background cover.