Fixed ImageObserver.

Storing reference to activity is bad. So workaround is used instead.