Moved image showing functionality to from theme to plugin