Updates image preview.