PHP library to generate a sprite image with necessary css classes