"limit:" tag support

* Accounted for the "limit:" tag in several functions.
* Allowed the use of the "limit:" tag to act as a temporary override for the user's desired thumbnail count.