Modified version of Drupal better_formats module