Extracting the best width value calculation as a reusable static method (`getClosestValue`).
Extracting the best width value calculation as a reusable static method (`getClosestValue`).

It is going to be reused to compute the best pixel ratio.

tolis-e/Imager.js,Brunosky75/Imager,Brunosky75/Imager,icoee/Imager.js,hellopath/Imager.js,vidyar/Imager.js,kendrick-k/Imager.js,hellopath/Imager.js,drummerboof/Imager.js,BBC-News/Imager.js,vidyar/Imager.js,icoee/Imager.js,drummerboof/Imager.js,tolis-e/Imager.js,kendrick-k/Imager.js