Adding different CSS for PDF images depending on count