Better handling of alternate image sizes when class not specified.