Update avatarquery.php

added "$max" to define how many avatars should be displayed