remove some node manipulation & add img size attribute to shortcode