Issue #2297039 by Kristen Pol: Fixed Notice: Undefined index: attributes in theme_picture_formatter().