 		}
 
 		/**
-		 * Get the byte array to be used with a Loader.loadBytes or similar.
-		 * @return Avatar bytes if any
+		 * The byte array to be used with a Loader.loadBytes or similar.
 		 */
 		public function get avatar():ByteArray
 		{
 			return _imageBytes;
 		}
-
+		public function set avatar( value:ByteArray ) : void
+		{
+			_imageBytes = value;
+		}
+		
+		/**
+		 * The image type of the avatar. Used for saving the image.
+		 * If this is blank, the avatar will not be saved.
+		 */
+		public function set avatarType( value:String ) : void
+		{
+			_avatarType = value;
+		}
+		
 		/**
 		 * Deserializes the incoming IQ to fill the values of this vcard.
 		 * @param iq


					case "AGE":
						break;

					default:
						trace( "handleVCard. unhandled case child.name(): " + child.name() );
						break;


		/**
		 * Version of the VCard. Usually 2.0 or 3.0.
		 * @see http://xmpp.org/extensions/xep-0054.html#impl
		 */
		public var version:Number;

