Values will occasionally NaN when width and height cannot be obtained fr...

...om ‘item’ object. Added code to check values and use this.width/this.height instead.