Write extensions of images in stylesheet