Set the image property of UIImageView on the main thread