BAC-474: ImageServing

Small images render badly with ImageServing

* ``ImageServing::getImages()`` was not taking dimensions restriction into consideration
* Modify the structure of memcache keys
* Add unit tests