Show just first image with WP Types


If you are using WordPress Types plugin for Custom Fields and Custom Post Types Management and you use image custom filed, sometimes you may need to show just one image instead of all uploaded for particular post or page. I am not using shortcodes but PHP implementing, so some situations and needings can be tricky.