load image preview before showing elements