Sprite canvas render: added texture loaded check before drawImage to prevent InvalidStateError