Index: bp-messages-template.php
===================================================================
--- bp-messages-template.php	(revision 7238)
+++ bp-messages-template.php	(working copy)
@@ -317,13 +317,27 @@
 		return apply_filters( 'bp_get_message_thread_last_post_date', bp_format_time( strtotime( $messages_template->thread->last_message_date ) ) );
 	}
 
-function bp_message_thread_avatar() {
-	echo bp_get_message_thread_avatar();
+function bp_message_thread_avatar( $args = '' ) {
+	echo apply_filters( 'bp_message_thread_avatar', bp_get_message_thread_avatar( $args ) );
 }
-	function bp_get_message_thread_avatar() {
+	function bp_get_message_thread_avatar( $args = '' ) {
 		global $messages_template;
+		
+		$fullname = bp_core_get_user_displayname( $messages_template->thread->last_sender_id );
 
-		return apply_filters( 'bp_get_message_thread_avatar', bp_core_fetch_avatar( array( 'item_id' => $messages_template->thread->last_sender_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $messages_template->thread->last_sender_id ) ) ) ) );
+		$defaults = array(
+			'type'   => 'thumb',
+			'width'  => false,
+			'height' => false,
+			'class'  => 'avatar',
+			'id'     => false,
+			'alt'    => sprintf( __( 'Profile picture of %s', 'buddypress' ), $fullname )
+		);
+
+		$r = wp_parse_args( $args, $defaults );
+		extract( $r, EXTR_SKIP );
+
+		return apply_filters( 'bp_get_message_thread_avatar', bp_core_fetch_avatar( array( 'item_id' => $messages_template->thread->last_sender_id, 'type' => $type, 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height ) ) );
 	}
 
 function bp_total_unread_messages_count() {
