function processing_get_avatar($avatar, $user, $size, $default, $alt = '')
{
    /*I borrowed this code from buddy press*/
    // If passed an object, assume $user->user_id
    if (is_object($user)) {
        if (isset($user->user_id)) {
            $id = $user->user_id;
        } else {
            $id = $user->ID;
        }
        // If passed a number, assume it was a $user_id
    } elseif (is_numeric($user)) {
        $id = $user;
        // If passed a string and that string returns a user, get the $id
    } elseif (is_string($user) && ($user_by_email = get_user_by('email', $user))) {
        $id = $user_by_email->ID;
    }
    /*This uncommented garbage is my code*/
    $test_var = true;
    $html_width = 'width = "' . $size . '" ';
    $html_height = 'height = "' . $size . '" ';
    $avatar_data = get_user_avatar_info($id);
    $json_data = json_get_user_avatar_info($id);
    if ($test_var) {
        $avatar = '<script src="' . plugin_dir_url($file) . 'processing-avatars/processing-1.4.8.js"></script> ' . '<canvas id="avatarSketch" data-processing-sources="' . plugin_dir_url($file) . 'processing-avatars/sketch_151226a/sketch_151226a.pde" width="26" height="26" ></canvas>' . '<script  type="application/javascript">' . ' var pjs = Processing.getInstanceById("avatarSketch"); var json = ' . $json_data . ' ;
		  // var data = json; if (data){ for (p = 0, end = data.parts.length; p<end;p++){
			// 	var part = data.parts[p]; pjs.addPart(part.sImage, part.W, part.H, part.posX, part.pasY);}}
			// 	console.log(data);
				console.log(json);
				//pjs.addPart(json.sImage, json.width, json.height, json.xPos, json.yPos);

				</script>';
    } else {
        // 	$avatar = '<script src="http://www.scigamescrew.com/public_html/staging/wp-content/plugins/processing-avatars//processing-1.4.8.js"></script> ' . '<canvas data-processing-sources="http://www.scigamescrew.com/public_html/staging/wp-content/plugins/processing-avatars//sketch_151226a.pde" ' . $html_width . $html_height . '></canvas>' . '<script  type="application/javascript">' . ' var arg = [0, 0, ' . $size . ', ' . $size . ', ' . $avatar_data . ']; ' . ' </script>';
        $avatar = '<script src="' . plugin_dir_url($file) . 'processing-avatars/processing-1.4.8.js"></script> ' . '<canvas data-processing-sources="' . plugin_dir_url($file) . 'processing-avatars/sketch_151226a/sketch_151226a.pde" width="$html_width" height="$html_height" ></canvas>' . '<script  type="application/javascript">' . ' var arg = [0, 0, ' . $size . ', ' . $size . ', ' . $avatar_data . ' ]; ' . ' </script>';
    }
    // plugin_dir_url( $file )
    return $avatar;
}
<?php

/**
 * Template Name: Avatar Creation
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
$size = 598;
$html_width = 'width = "' . $size . '" ';
$html_height = 'height = "' . $size . '" ';
$user_ID = get_current_user_id();
$avatar_data = get_user_avatar_info($user_ID);
get_header();
?>
 <style type="text/css">
 .container {
	width: 80%;
	max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
	min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
	background: #FFF;
	margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
	overflow: hidden; /* this declaration makes the .container clear all floated columns within it. */
}

/* ~~ These are the columns for the layout. ~~ 

1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.

2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.