fixed images preview bug