added shortcode function (img) and selective show (skip the empties)