public function gallery($size = 'thumbnail', $format = 'array', $limit = -1)
	{

		$images = get_posts(array(
			'post_parent'    => $this->ID,
			'post_type'      => 'attachment',
			'numberposts'    => $limit,
			'post_status'    => null,
			'post_mime_type' => 'image',
			'orderby'        => 'menu_order',
			'order'          => 'ASC',
		));

		if (!$images || count($images) == 0)
		{
			return null;
		}

		$return = array();

		foreach ($images as $image)
		{
			if ($format == 'array')
			{
				$img          = wp_get_attachment_image_src($image->ID, $size, false);
				$i            = array();
				$i['url']     = $img[0];
				$i['width']   = $img[1];
				$i['height']  = $img[2];
				$i['resized'] = $img[3];
				$i['title']   = $image->post_title;
				$return[]     = $i;
			}
			else if ($format == 'html')
			{
				$return[] = wp_get_attachment_image($image->ID, $size, false);
			}
		}

		return Collection::make($return);

	}