Improved error handling; fix error in sprite generation (by upgrading Compass)