Trying to solve async problems
Make resize and display image working