No need any more functions.php file editing. Just give a tick mark and this plugin will do the rest for you.
Adds the function wp_get_post_image(), giving theme builders easy access to images associated with a post or page.