pet common utilities class added
adding layer inside sprite callbacks