Update style.js

If all the images have the same size, then ensure that the size is only output once. Useful if you have a bunch of images that are all the same size in one sprite.