alter resizeImage function

somehow contradicts the plugin, but it's my use case (portfolio): only resize images larger than viewport, everything else show centered in original resolution