Smooth load images with JavaScript