Fix for Sprite not loaded

wait until Sprite is loaded to start autodeclaration
Fixes for canvas in Graphics /Drawing