the message is already rendered. for example >>> is converted to <blockquote>'s
in HTML messages your work added the resampling of inline images... view_message_replyquote.html is the compactest template to view that. there's work ongoing to render it into a json struct too.