Adds div classes for images