Sets margin for images in array in display view + add css classes for opacity coded/not-coded images