lnnThumImage function added