Add functions for preview pictures when load edit items.