Current implementation switch display between file attachment and image attachment. This commit split those behavior in 2 components. Part of task-2365881 closes odoo/odoo#76541 X-original-commit: 0a0f37f6645f1196e3a6d104e8592a1a362058db Related: odoo/enterprise#20880 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>