*removed stderr debug output
*improved draw sprite so that it works within a group