fixed bug imagepreview