diff --git a/theme/pay.theme.inc b/theme/pay.theme.inc
index 7650a72..08c5d99 100644
--- a/theme/pay.theme.inc
+++ b/theme/pay.theme.inc
@@ -132,8 +132,9 @@ function template_preprocess_pay_cc_form(&$variables) {
     foreach ($variables['element']['cc_type']['#options'] as $card => $label) {
       if (empty($card)) continue;
       $variables['element']['cc_type_image'][$card] = array(
-        '#type' => 'markup',
-        '#markup' => theme('image', array('path' => $path . $card . '.png', 'width' => $label)),
+        '#theme' => 'image',
+        '#path' => $path . $card . '.png',
+        '#attributes' => array('class' => array(drupal_html_class($card))),
       );
     }
   }
