Added function get_attachment_url_by_name.
Removed options check that doesn't exist in this theme.