apply the user's pbem_class to the shortcode for each image