add async resizing of images