fix collection preview images
refractor media api class with wrapper entity (wip)