Simple PHP sprite-maker php class