Ensure we always set the UIKit image properties from the main thread (fix #403, fix #417, fix #398)