public function allimages( $prefix = null, $sha1 = null, $base36 = null, $from = null, $minsize = null, $maxsize = null, $dir = 'ascending', $prop = array(
		'timestamp', 'user', 'comment', 'url', 'size', 'dimensions', 'sha1', 'mime', 'metadata', 'archivename',
		'bitdepth'
	), $limit = 50 ) {
		$leArray = array(
			'list'   => 'allimages',
			'_code'  => 'ai',
			'aidir'  => $dir,
			'aiprop' => implode( '|', $prop ),
			'_limit' => $limit
		);

		if( !is_null( $from ) ) $leArray['aifrom'] = $from;
		if( !is_null( $prefix ) ) $leArray['aiprefix'] = $prefix;
		if( !is_null( $minsize ) ) $leArray['aiminsize'] = $minsize;
		if( !is_null( $maxsize ) ) $leArray['aimaxsize'] = $maxsize;
		if( !is_null( $sha1 ) ) $leArray['aisha1'] = $sha1;
		if( !is_null( $base36 ) ) $leArray['aisha1base36'] = $base36;

		Hooks::runHook( 'PreQueryAllimages', array( &$leArray ) );

		pecho( "Getting list of all images...\n\n", PECHO_NORMAL );

		return $this->listHandler( $leArray );

	}