Fixed the bug not showing image preview in detail view