Asyncify the image resizing