add class attribute for aligned images