extend storing media as an attachment ID