LPS-51699 show image preview before uploading and use of A.Later instead of setTimeout