catch exception at wait for thread\?
added api to request callback notification when image is ready to draw