fix adding overlayImageView layer blocking main thread