Added Texture Atlas support for use with particles

Following the hints from the old ticket #374