Add refactor logic to item editor, move thumbnail logic into model
helper, fix thumbnail for no context for item media_id