Added get_attachment_id_from_src function