fixing issue with add image incompatibility in WordPress 3.5.1