Values will occasionally NaN when width and height cannot be obtained from ‘item’ object. Added code to check values and use this.width/this.height instead.