Generates a stylesheet with a random image for a given class or id