Add class to aligned image