using id method to get correct attachment id
editor module