I am using the file_create_url() function to create the URL for images. The code is:
<img src="<?php echo file_create_url($node->field_history_image['und']['uri']); ?>">
But I just noticed that the alt and title attributes are not added to the HTML output, eventhough I added them for the image in the admin.
How would I change the above code, so that it adds the alt and title attributes if they are filled in the Admin interface. Or what other function should I use?