Added additional internal state "loading" while loading an image. While
this state is TRUE most method calls have not effect or do return
undefined values. You can check loading state via isLoading method.