Revert "_s: _s_the_attached_image() function removed"

This reverts commit d8a7715b94cfc6ec0bcb5ee74b6c50332495c6d1.
Revert 431618f..b569135

This rolls back to commit 431618fd29b84039fd0637c14bb52c27f9ac6399.